<?php
/**
 * Created by PhpStorm.
 * User: stupboy
 * Date: 2018/2/4
 * Time: 0:31
 */

namespace app\base\logic;
use app\base\service;

/**
 * 推送类
 * @package app\base\logic
 */
class Push
{
    public function pushDriver($registration_id,$msg){
        $push = new service\JPush();
        $push->setKey('daaafb369d2efc08efc6a239','65a09a72b53f8c15a4ef7b66');
        return $push->pushMessage($registration_id,$msg);
    }

    public function pushPassenger($registration_id,$msg){
        $push = new service\JPush();
        $push->setKey('7787fd27355ebf708554e7dc','0b7dc5f2f0d3bafbd96b1ed7');
        return $push->pushMessage($registration_id,$msg);
    }
}